import request from '@/config/axios'

export const getLogListApi = (params: any): Promise<IResponse> => {
    const queryParams = params.queryParams ? params.queryParams : {}
    if (params.queryParams) {
        delete params.queryParams
    }
    Object.assign(params, queryParams)
    params.pageNum = params.page_index
    params.pageSize = params.page_size
    delete params.page_index
    delete params.page_size
    return request.get({url: '/log/page', params})
}

export const getLogParamListApi = (): Promise<IResponse> => {
    return request.get({url: '/log/params'})
}
